# docker image for smart-switch/DASH high availability services

DOCKER_DASH_HA_STEM = docker-dash-ha
DOCKER_DASH_HA = $(DOCKER_DASH_HA_STEM).gz
DOCKER_DASH_HA_DBG = $(DOCKER_DASH_HA_STEM)-$(DBG_IMAGE_MARK).gz

$(DOCKER_DASH_HA)_PATH = $(DOCKERS_PATH)/$(DOCKER_DASH_HA_STEM)

$(DOCKER_DASH_HA)_DEPENDS += $(DASH_HA)
$(DOCKER_DASH_HA)_DBG_DEPENDS = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_DEPENDS)
$(DOCKER_DASH_HA)_DBG_DEPENDS += $(DASH_HA_DBG)

$(DOCKER_DASH_HA)_DBG_IMAGE_PACKAGES = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_IMAGE_PACKAGES)

$(DOCKER_DASH_HA)_LOAD_DOCKERS += $(DOCKER_SWSS_LAYER_BOOKWORM)

$(DOCKER_DASH_HA)_VERSION = 1.0.0
$(DOCKER_DASH_HA)_PACKAGE_NAME = dash-ha
$(DOCKER_DASH_HA)_WARM_SHUTDOWN_BEFORE = syncd
$(DOCKER_DASH_HA)_WARM_SHUTDOWN_AFTER = swss
$(DOCKER_DASH_HA)_FAST_SHUTDOWN_BEFORE = syncd
$(DOCKER_DASH_HA)_FAST_SHUTDOWN_AFTER = swss

SONIC_DOCKER_IMAGES += $(DOCKER_DASH_HA)
ifeq ($(INCLUDE_DASH_HA), y)
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_DASH_HA)
endif

SONIC_DOCKER_DBG_IMAGES += $(DOCKER_DASH_HA_DBG)
ifeq ($(INCLUDE_DASH_HA), y)
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_DASH_HA_DBG)
endif

$(DOCKER_DASH_HA)_CONTAINER_NAME = dash-ha
$(DOCKER_DASH_HA)_RUN_OPT += -t
$(DOCKER_DASH_HA)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_DASH_HA)_RUN_OPT += -v /etc/timezone:/etc/timezone:ro

SONIC_BOOKWORM_DOCKERS += $(DOCKER_DASH_HA)
SONIC_BOOKWORM_DBG_DOCKERS += $(DOCKER_DASH_HA_DBG)
